package cn.xingzhe.monster.user.domain.exception;

/**
 * 用户账号锁定异常
 *
 * @author System
 * @version 1.0.0
 * @since 2024-01-01
 */
public class UserAccountLockedException extends UserException {

    private static final String ERROR_CODE = "A0202";
    private static final String DEFAULT_MESSAGE = "用户账号未激活或已被锁定";

    /**
     * 构造函数
     */
    public UserAccountLockedException() {
        super(ERROR_CODE, DEFAULT_MESSAGE);
    }

    /**
     * 构造函数
     *
     * @param message 错误消息
     */
    public UserAccountLockedException(String message) {
        super(ERROR_CODE, message);
    }

    /**
     * 创建用户账号锁定异常
     *
     * @return UserAccountLockedException
     */
    public static UserAccountLockedException of() {
        return new UserAccountLockedException();
    }

    /**
     * 创建用户账号锁定异常
     *
     * @param message 错误消息
     * @return UserAccountLockedException
     */
    public static UserAccountLockedException of(String message) {
        return new UserAccountLockedException(message);
    }
}

